#define _CRT_SECURE_NO_WARNINGS 1
#include"Heap.h"

void PrintArray(Heap* hp)
{
	assert(hp);
	for (int i = 0; i < hp->size; i++)
	{
		printf("%d ", hp->a[i]);
	}
	printf("\n");
}

int main()
{
	Heap hpp;
	HeapInit(&hpp);
	HeapPush(&hpp, 1);
	HeapPush(&hpp, 2);
	HeapPush(&hpp, 3);
	HeapPush(&hpp, 4);
	HeapPush(&hpp, 5);
	HeapPush(&hpp, 3);
	HeapPush(&hpp, 7);
	PrintArray(&hpp);
	HeapPop(&hpp);
	HeapPop(&hpp);
	PrintArray(&hpp);
	int ret = HeapSize(&hpp);
	printf("%d \n", ret);
	HeapDestory(&hpp);
	return 0;
}